package services

import (
	"HyperNexus/common/types"
	"HyperNexus/hyperNexus/utils"
)

type Service struct {
	sid  types.ServiceUUID // 服务唯一ID
	name string            // 服务名称
}

func NewService(name string) Service {
	return Service{
		sid:  types.ServiceUUID(utils.GenerateUUID()),
		name: name,
	}
}

func (s *Service) Name() string {
	return s.name
}

func (s *Service) Sid() types.ServiceUUID {
	return s.sid
}
